package com.znsd.zl.address.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.znsd.zl.address.dao.AddressDao;
import com.znsd.zl.address.entity.Address;
import com.znsd.zl.address.entity.City;
import com.znsd.zl.address.entity.Province;
import com.znsd.zl.address.service.IAddressService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName AddressServiceImpl
 * @Description TODO
 * @Author jbb
 * @Date 2020/8/26 17:46
 * @Version v1.0
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressDao, Address> implements IAddressService {

    @Override
    public Address findAddressByProvince(String province,String city) {
        return getBaseMapper().findAddressByProvince(province,city);
    }

    @Override
    public Province findProvince(String province) {
        return getBaseMapper().findProvince(province);
    }

    @Override
    public City findCity(String city) {
        return getBaseMapper().findCity(city);
    }

    @Override
    public List<String> findAllDistrictByCityName(String city) {
        return getBaseMapper().findAllDistrictByCityName(city);
    }

}
